import React, { Component } from 'react'
import { Row, Col } from 'antd'
                        //   命名为index，可以自动找到索引，不用引进进来也可以，如果不是index，需要将其引进来
import Header from './component/Header'
import Footer from './component/Footer'
import NavLeft from './component/NavLeft'
import Home from './pages/Home'
import './style/common.less'
                                // 继承 Component 是为了使用react的生命周期
export default class Admin extends Component {
    render() {
        return (
            <Row className='container'>
                <Col span={4} className='nav-left'>
                    <NavLeft/>
                </Col>
                <Col span={20} className='main'>
                    <Header/>
                    <Row className='content'>
                        <Home/>
                    </Row>
                    <Footer/>
                </Col>
            </Row>
        )
    }
}
